package com.模拟线程安全问题.Lock的锁;

public class ThreadDemo {
    public static void main(String[] args) {
        Account account = new Account("001", 100000.0);//创建十万的账户

        //创建小名和小红 同时取钱
        new WithdrawMoneyThread(account,"小红").start();
        new WithdrawMoneyThread(account,"小黑").start();
        new WithdrawMoneyThread(account,"小白").start();
        new WithdrawMoneyThread(account,"小明").start();
    }
}
